package top.kaoshanji.p1ch04a;

/**
 * 代码清单-p1ch04a-056页a：++ 和 -- 操作符
 * author kaoshanji
 * ^_^
 * create time 2025/3/6 16:58
 */
public class AutoInc {

    public static void main(String[] args) {
        int i = 1;
        System.out.println("i: " + i);
        System.out.println("++i: " + ++i);
        System.out.println("i++: " + i++);
        System.out.println("i: " + i);
        System.out.println("--i: " + --i);
        System.out.println("i--: " + i--);
        System.out.println("i: " + i);
    }



}
